package com.rd.student.jike.class1.sunhao.day02;


public class Student implements Comparable {
        //学号既序号
        public int num;
        //姓名
        public String name;
        //专业
        public String major;
        //班级
        public int cla;
        //评论
        public String desc;
        //年龄
        public int age;

        private int codeName;

        public Student() {

        }

        public Student(String name, String major, int cla) {
            this.name = name;
            this.major = major;
            this.cla = cla;
        }

        public Student(int num, String name, String major, int cla, String desc, int age, int codeName) {
            this.codeName = codeName;
            this.num = num;
            this.name = name;
            this.major = major;
            this.cla = cla;
            this.desc = desc;
            this.age = age;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getMajor() {
            return major;
        }

        public void setMajor(String major) {
            this.major = major;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public int getAge() {
            return age;
        }

        public void setAge(int age) {
            this.age = age;
        }

        public int getCla() {
            return cla;
        }

        public void setCla(int cla) {
            this.cla = cla;
        }

        public int getCodeName() {
            return codeName;
        }

        public void setCodeName(int codeName) {
            this.codeName=codeName;
        }


    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    @Override
    public String toString() {
        Integer integer1=num;
        Integer integer2=cla;
        Integer integer3=age;
        Integer integer4=codeName;
        String str1=integer1.toString();
        String str2=integer2.toString();
        String str3=integer3.toString();
        String str4=integer4.toString();

        return  str1+","+name+"," +major+","+str2+","+desc+","+str3+","+str4;
        }

    @Override
    public int compareTo(Object o) {
        return 0;
    }

}

